function showLogin() {
    document.getElementById('login-form').style.display = "block";
}

function showSignup() {
    document.getElementById('signup-form').style.display = "block";
}

function closeModal(modalId) {
    document.getElementById(modalId).style.display = "none";
}

document.addEventListener('DOMContentLoaded', function() {
   var toTopBtn = document.getElementById('toTopBtn');
   
   // 添加点击事件监听器
   toTopBtn.addEventListener('click', function() {
   window.scrollTo({
   top: 0,
   behavior: 'smooth'
    });
    });
    });